from flask_cors import CORS

from app import create_app
from app.controller.EmployeeInfoController import employee_info_controller_bp
from app.controller.DepartmentInfoController import department_info_bp
from app.controller.PositionInfoController import position_info_bp

app = create_app()
CORS(app)

app.register_blueprint(employee_info_controller_bp, url_prefix="/employee")
app.register_blueprint(department_info_bp, url_prefix="/department")
app.register_blueprint(position_info_bp, url_prefix="/position")

if __name__ == '__main__':
    app.run()
